package com.cloudbroker.bcs.platform.dav.common.entity;

import com.cloudbroker.bcs.common.entity.StatusUpdatable;
import org.apache.commons.lang3.StringUtils;

public class ClientProfile extends StatusUpdatable {
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    
    //客户编号
    protected Long client_id;
    
    //证件类型
    protected Integer id_kind;
    
    //证件编号
    protected String id_no;
    
    //手机号码
    protected String mobile;
    
    //客户姓名
    protected String client_name;
    
    //客户昵称
    protected String client_nickname;
    
    //邀请码编号
    protected Long invitation_id;
    //用户中心-hs_id
    protected String hs_id;
    
    public String getClientDefaultName() {
        String clientDefaultName = client_name;
        if (StringUtils.isBlank(clientDefaultName)) {
            clientDefaultName = client_nickname;
        }
        if (StringUtils.isBlank(clientDefaultName)) {
            clientDefaultName = mobile;
        }
        return clientDefaultName;
    }
    
    public Long getClient_id() {
        return client_id;
    }
    
    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }
    
    public Integer getId_kind() {
        return id_kind;
    }
    
    public void setId_kind(Integer id_kind) {
        this.id_kind = id_kind;
    }
    
    public String getId_no() {
        return id_no;
    }
    
    public void setId_no(String id_no) {
        this.id_no = id_no;
    }
    
    public String getMobile() {
        return mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    public String getClient_name() {
        return client_name;
    }
    
    public void setClient_name(String client_name) {
        this.client_name = client_name;
    }
    
    public String getClient_nickname() {
        return client_nickname;
    }
    
    public void setClient_nickname(String client_nickname) {
        this.client_nickname = client_nickname;
    }
    
    public Long getInvitation_id() {
        return invitation_id;
    }
    
    public void setInvitation_id(Long invitation_id) {
        this.invitation_id = invitation_id;
    }
    
    public String getHs_id() {
        return hs_id;
    }

    public void setHs_id(String hs_id) {
        this.hs_id = hs_id;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ClientProfile [client_id=").append(client_id).append(", id_kind=").append(id_kind)
                .append(", id_no=").append(id_no).append(", mobile=").append(mobile).append(", client_name=")
                .append(client_name).append(", client_nickname=").append(client_nickname)
                .append(", invitation_id=").append(invitation_id).append(", hs_id=").append(hs_id)
                .append(", status=").append(status).append(", update_version=").append(update_version)
                .append(", update_time=").append(update_time).append(", update_user=").append(update_user)
                .append(", remark=").append(remark).append(", page=").append(page).append(", sortMarkers=")
                .append(sortMarkers).append("]");
        return builder.toString();
    }
}
